package com.example.waibao.service;

import com.example.waibao.entity.faq;
import com.example.waibao.entity.notice;
import com.github.pagehelper.PageInfo;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

public interface NoticeService
{


    void setNotice(String message, int sys_id, Date time, int school_id, int type);

    List<notice> getNotice();

    PageInfo<notice> getNotice2(Integer pageNum, Integer pageSize, LocalDate time1,LocalDate time2,int school_id);

    PageInfo<faq> get_question(Integer pageNum, Integer pageSize,int schoolId, int status);

    void solve_question(int questionId, String answer, int sysId);

    void delete_question(int questionId);

    void delete_notice(int id);

    void update_notice(int id, Date date1, String message, Long id1, int type);

    // PageInfo<notice> getNotice2(Integer pageNum, Integer pageSize, LocalDate time,String state);
}
